package cn.huoyingkeji.system.dto;

import java.io.Serializable;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import cn.huoyingkeji.common.domain.DTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "资源")
public class ResourceDTO extends DTO {
    private static final long serialVersionUID = 1L;

    /** id */
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "ID")
    private Long id;

    /** 父id */
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "父id")
    private Long parentId;

    /** 标题 */
    @Schema(description = "标题")
    private String title;

    /** 别名 */
    @Schema(description = "别名")
    private String name;

    /** 编码 */
    @Schema(description = "编码")
    private String code;

    /** 分类 */
    @Schema(description = "分类")
    private String category;

    /** 模块 */
    @Schema(description = "模块")
    private String module;

    /** 菜单类型 */
    @Schema(description = "菜单类型")
    private String menuType;

    /** 路径 */
    @Schema(description = "路径")
    private String path;

    /** 组件 */
    @Schema(description = "组件")
    private String component;

    /** 图标 */
    @Schema(description = "图标")
    private String icon;

    /** 颜色 */
    @Schema(description = "颜色")
    private String color;

    /** 是否可见 */
    @Schema(description = "是否可见")
    private String visible;

    /** 排序码 */
    @Schema(description = "排序码")
    private Integer sortCode;

    /** 扩展信息 */
    @Schema(description = "扩展信息")
    private String extJson;
}
